package com.rm.zeyou.vo.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author 🤙🤙🏼🤙🏽
 * @date 2025 3月 18 09:41
 * @Description
 */
@Data
public class TechnicianStatisticsResponseVo {

    @ApiModelProperty("下一等级金额")
    private BigDecimal nextGrade;
    @ApiModelProperty("下一个等级名称")
    private String nextGradeName;
    @ApiModelProperty("距离下一等级金额")
    private BigDecimal subPrice;
    @ApiModelProperty("当前等级")
    private String nowGradeName;
    @ApiModelProperty("总成交额")
    private BigDecimal totalTurnover;
    @ApiModelProperty("总项目收入")
    private BigDecimal totalItemRevenue;
    @ApiModelProperty("总车费收入")
    private BigDecimal totalCarFareRevenue;
    @ApiModelProperty("在线时长")
    private String onlineTime;
    @ApiModelProperty("差多少业绩的百分比")
    private BigDecimal progressBar;
    @ApiModelProperty("加钟率")
    private BigDecimal addBellRate;
    @ApiModelProperty("今日数据")
    public TodayRevenue todayRevenue;
    @ApiModelProperty("昨日数据")
    public YesterdayRevenue yesterdayRevenue;

    @Data
    public static class TodayRevenue {
        @ApiModelProperty("今日成交额")
        private BigDecimal todayTurnover;
        @ApiModelProperty("今日项目收入")
        private BigDecimal todayItemRevenue;
        @ApiModelProperty("今日车费收入")
        private BigDecimal todayCarFareRevenue;
        @ApiModelProperty("今日服务总单量")
        private Integer todayServerNum;
    }

    @Data
    public static class YesterdayRevenue {
        @ApiModelProperty("昨日成交额")
        private BigDecimal yesterdayTurnover;
        @ApiModelProperty("昨日项目收入")
        private BigDecimal yesterdayItemRevenue;
        @ApiModelProperty("昨日车费收入")
        private BigDecimal yesterdayCarFareRevenue;
        @ApiModelProperty("昨日服务总单量")
        private Integer yesterdayServerNum;
    }
}
